import 'package:flutter/material.dart';
import 'package:get/get.dart';
import 'package:get/get_instance/src/bindings_interface.dart';

import '../CountController.dart';
import '../TestController.dart';

///代码清单7-14
///lib/page/count/binding/TestBinding.dart
class TestBinding extends Bindings {
  @override
  void dependencies() {
    ///7.4.3小节中创建
    Get.lazyPut<TestController>(() => TestController());
    ///7.4.2小节中创建
    Get.lazyPut<CountController>(() => CountController());
  }
}